<?php

/* @var $this yii\web\View */

use yii\helpers\Url;
use yii\helpers\Html;
$this->title = '后台首页';
?>
<div class="myheading">
    <nav class="navbar navbar-inner">
        <div class="container-fluid">

            <div class="navbar-header">
                <!--nav troggle-->
                <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#hard-navbar">
                    <span class="sr-only">导航切换</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <!--nav troggle-->
                <!--brand-->
                <a class="navbar-brand" href="#" style="height: 104px;margin-left: -15px;margin-top: -20px;">
                    <h2>欢迎使用 <strong>竞拍管理后台</strong></h2>
                    <h5>Welcome to use Auction management system</h5>
                <!--brand-->
            </div>

            <!--nav links-->
            <div class="collapse navbar-collapse" id="hard-navbar">

                <ul class="nav navbar-nav navbar-right">
                    <li><a href="aa.html" class="atip" target="appiframe" data-toggle="tooltip" data-placement="bottom" data-title="首页"><span class="glyphicon glyphicon-home" aria-hidden="true"></span></a></li>
                    <li class="dropdown">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">
                            <span class="glyphicon glyphicon-sunglasses" aria-hidden="true"></span> <?=!Yii::$app->user->isGuest?Yii::$app->user->identity->username:''?>
                        </a>

                        <ul class="dropdown-menu dropdown-menu-arrow-right" role="menu">
                            <li><?=Html::beginForm(['/site/logout'], 'post')
                                . Html::submitButton(
                                '退出'  ,
                                ['class' => 'btn btn-link logout']
                                )
                                . Html::endForm()?>
                            </li>
                        </ul>
                    </li>
                </ul>


            </div>
            <!--nav links-->
        </div>
    </nav>
</div>

<!--main-->
<div class="container-fluid mybody">
    <div class="main-wapper">
        <!--菜单-->
        <div id="siderbar" class="siderbar-wapper">

            <div class="panel-group menu" id="accordion" role="tablist" aria-multiselectable="true">

                <div class="panel panel-inner">
                    <div class="panel-heading panel-heading-self" role="tab" id="headingOne">
                        <h4 class="panel-title">
                            <a data-toggle="collapse" data-parent="#accordion" href="#collapseOne" aria-expanded="true" aria-controls="collapseOne">
                                <span class="glyphicon glyphicon-list-alt"></span>商品管理
                            </a>
                        </h4>
                    </div>
                    <div id="collapseOne" class="panel-collapse collapse in" role="tabpanel" aria-labelledby="headingOne">
                        <div class="list-group list-group-self">
                            <a href="<?=Url::to(['type/index'])?>" target="appiframe" class="list-group-item"><span class="glyphicon glyphicon-menu-right"></span> 栏目管理</a>
                            <a href="<?=Url::to(['product/index'])?>" target="appiframe" class="list-group-item"><span class="glyphicon glyphicon-menu-right"></span> 产品管理</a>
                        </div>
                    </div>
                </div>

                <div class="panel panel-inner">
                    <div class="panel-heading panel-heading-self" role="tab" id="headingSeven">
                        <h4 class="panel-title">
                            <a class="collapsed" data-toggle="collapse" data-parent="#accordion" href="#collapseSeven" aria-expanded="false" aria-controls="collapseSeven">
                                <span class="glyphicon glyphicon-shopping-cart"></span>商城管理
                            </a>
                        </h4>
                    </div>
                    <div id="collapseSeven" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingSeven">
                        <div class="list-group list-group-self">
                            <a href="<?=Url::to(['banner/index'])?>"  target="appiframe" class="list-group-item"><span class="glyphicon glyphicon-menu-right"></span> 广告图列表</a>
                        </div>
                    </div>
                </div>

                <div class="panel panel-inner">
                    <div class="panel-heading panel-heading-self" role="tab" id="headingTwo">
                        <h4 class="panel-title">
                            <a class="collapsed" data-toggle="collapse" data-parent="#accordion" href="#collapseTwo" aria-expanded="false" aria-controls="collapseTwo">
                                <span class="glyphicon glyphicon-th"></span> 竞拍管理
                            </a>
                        </h4>
                    </div>
                    <div id="collapseTwo" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingTwo">
                        <div class="list-group list-group-self">
                           <a href="<?=Url::to(['auction/index'])?>"  target="appiframe" class="list-group-item"><span class="glyphicon glyphicon-menu-right"></span> 竞拍列表</a>
                            <a href="<?=Url::to(['saleorder/index'])?>"  target="appiframe" class="list-group-item"><span class="glyphicon glyphicon-menu-right"></span> 订单列表</a>
                        </div>
                    </div>
                </div>

                <div class="panel panel-inner">
                    <div class="panel-heading panel-heading-self" role="tab" id="headingThree">
                        <h4 class="panel-title">
                            <a class="collapsed" data-toggle="collapse" data-parent="#accordion" href="#collapseThree" aria-expanded="false" aria-controls="collapseThree">
                                <span class="glyphicon glyphicon-user"></span> 用户管理
                            </a>
                        </h4>
                    </div>
                    <div id="collapseThree" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingThree">
                        <div class="list-group list-group-self">
                            <a href="<?=Url::to(['user/index'])?>"  target="appiframe" class="list-group-item"><span class="glyphicon glyphicon-menu-right"></span>用户</a>
                        </div>
                    </div>
                </div>

                <div class="panel panel-inner">
                    <div class="panel-heading panel-heading-self" role="tab" id="headingFour">
                        <h4 class="panel-title">
                            <a class="collapsed" data-toggle="collapse" data-parent="#accordion" href="#collapseFour" aria-expanded="false" aria-controls="collapseFour">
                                <span class="glyphicon glyphicon-send"></span>基础管理
                            </a>
                        </h4>
                    </div>
                    <div id="collapseFour" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingFour">
                        <div class="list-group list-group-self">
                            <a href="<?=Url::to(['bank/index'])?>"  target="appiframe" class="list-group-item"><span class="glyphicon glyphicon-menu-right"></span> 银行管理</a>
                            <a href="<?=Url::to(['country/index'])?>"  target="appiframe" class="list-group-item"><span class="glyphicon glyphicon-menu-right"></span> 国家管理</a>
                        </div>
                    </div>
                </div>


                <div class="panel panel-inner">
                    <div class="panel-heading panel-heading-self" role="tab" id="headingFive">
                        <h4 class="panel-title">
                            <a class="collapsed" data-toggle="collapse" data-parent="#accordion" href="#collapseFive" aria-expanded="false" aria-controls="collapseFive">
                                <span class="glyphicon glyphicon-comment"></span> 评论管理
                            </a>
                        </h4>
                    </div>
                    <div id="collapseFive" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingFive">
                        <div class="list-group list-group-self">
                            <a href="<?=Url::to(['showorder/index'])?>"  target="appiframe" class="list-group-item"><span class="glyphicon glyphicon-menu-right"></span> 晒单列表</a>
                            <a href="<?=Url::to(['push/index'])?>"  target="appiframe" class="list-group-item"><span class="glyphicon glyphicon-menu-right"></span> 推送列表</a>
                        </div>
                    </div>
                </div>

                <div class="panel panel-inner">
                    <div class="panel-heading panel-heading-self" role="tab" id="headingEight">
                        <h4 class="panel-title">
                            <a class="collapsed" data-toggle="collapse" data-parent="#accordion" href="#collapseEight" aria-expanded="false" aria-controls="collapseEight">
                                <span class="glyphicon glyphicon-comment"></span> 反馈管理
                            </a>
                        </h4>
                    </div>
                    <div id="collapseEight" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingEight">
                        <div class="list-group list-group-self">
                            <a href="<?=Url::to(['idea/index'])?>"  target="appiframe" class="list-group-item"><span class="glyphicon glyphicon-menu-right"></span> 反馈列表</a>
                        </div>
                    </div>
                </div>

                <div class="panel panel-inner">
                    <div class="panel-heading panel-heading-self" role="tab" id="headingSix">
                        <h4 class="panel-title">
                            <a class="collapsed" data-toggle="collapse" data-parent="#accordion" href="#collapseSix" aria-expanded="false" aria-controls="collapseSix">
                                <span class="glyphicon glyphicon-cog"></span> 系统设置
                            </a>
                        </h4>
                    </div>
                    <div id="collapseSix" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingSix">
                        <div class="list-group list-group-self">
                            <a href="<?=Url::to(['admin/index'])?>"  target="appiframe" class="list-group-item"><span class="glyphicon glyphicon-menu-right"></span>管理员</a>
                            <a href="<?=Url::to(['permission/index'])?>"  target="appiframe" class="list-group-item"><span class="glyphicon glyphicon-menu-right"></span>权限管理</a>
                            <a href="<?=Url::to(['role/index'])?>"  target="appiframe" class="list-group-item"><span class="glyphicon glyphicon-menu-right"></span>角色管理</a>
                        </div>
                    </div>
                </div>
            </div>

        </div>
        <!--菜单-->
        <!--内容-->
        <div id="content" class="main-content">

            <iframe src="<?=Url::to(['order/index'])?>" style="width:100%;height: 100%;" id="appiframe" name="appiframe" frameborder="0"></iframe>

        </div>
        <!--内容-->
    </div>

</div>

<!--main-->
